package com.atguigu.daijia.order.service;

import com.atguigu.daijia.model.entity.order.OrderMonitor;
import com.atguigu.daijia.model.entity.order.OrderMonitorRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author 谢忠涵7
 */
public interface OrderMonitorService extends IService<OrderMonitor> {

    /**
     * @description: 保存订单监控记录数据
     * @author: xiaoxie
     * @date: 2024/10/30 20:30
     * @param: [orderMonitorRecord]
     * @return: java.lang.Boolean
     **/
    Boolean saveOrderMonitorRecord(OrderMonitorRecord orderMonitorRecord);

    /**
     * @description: 根据订单id获取订单监控信息
     * @author: xiaoxie
     * @date: 2024/10/30 20:56
     * @param: [orderId]
     * @return: OrderMonitor
     **/
    OrderMonitor getOrderMonitor(Long orderId);

    /**
     * @description: 更新订单监控信息
     * @author: xiaoxie
     * @date: 2024/10/30 20:56
     * @param: [orderMonitor]
     * @return: java.lang.Boolean
     **/
    Boolean updateOrderMonitor(OrderMonitor orderMonitor);
    /**
     * @description: 保存数据到mysql中
     * @author: xiaoxie
     * @date: 2024/10/30 20:59
     * @param: [orderMonitor]
     * @return: java.lang.Long
     **/
    Long saveOrderMonitor(OrderMonitor orderMonitor);
}
